package com.tangxz.chat.common.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * netty接收websocket的消息对象
 * @author: 唐小尊
 * @email: 1171702529@qq.com
 * @cate: 2021/04/18 19:53
 */
@Data
public class MsgContentDto implements Serializable {
    private Integer action;//动作类型
    private String senderId;//发送者id
    private String receiverId;//接收者id
    private Msg msg;//用户的聊天内容
    private String extend;//扩展字段

    public MsgContentDto() {
    }

    public MsgContentDto(Integer action, String senderId, String receiverId, Msg msg, String extend) {
        this.action = action;
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.msg = msg;
        this.extend = extend;
    }
}
